<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TaskController;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::get('/get/video/list',[TaskController::class, 'getVideoList']);
Route::get('/get/video',[TaskController::class, 'getVideo']);


Route::group(['middleware' =>  ['videoChecksgin']], function() {
    Route::post('/get/task',[TaskController::class, 'getTask']);
    Route::post('/save/subtask',[TaskController::class, 'saveSubtask']);
    Route::post('/save/comment',[TaskController::class, 'saveComment']);
    Route::post('/reply/content',[TaskController::class, 'replyContent']);
    Route::post('/end/subtask',[TaskController::class, 'endSubtask']);



});


